﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="/public/css/standard/auction.css" />
	<?php 
		$this->headLink()->appendStylesheet('/public/css/standard/column.css');
		$this->headLink()->appendStylesheet('/public/css/menuVer/style.css');
	?>
	</head>
	<script language="JavaScript">
	function auto_sub()
	{
		document.form_auction.submit();
	}
	function auto_sub1()
	{
		setTimeout("auto_sub()",<?php echo $this->time ?>);
	}

	</script>
	
<?php if($this->stop) { ?>
		<body>
	<?}else { ?>
		<body onLoad="auto_sub1();">
	<?}?>
		<div id="mainPage">
			<?php echo $this->action('menu','index','default');?>
			
			
			<div id="leftCol">
				<?php echo $this->action('yahoo','index','default'); ?>
				<?php echo $this->action('search','Searchsp','default');?>
				
			</div>
	
			<div id="rightCol">
					<?php echo $this->action('viewpost','news','Longadmin');?>
					<p align="center"><img src="/public/images/banner1.gif"></p>	
			</div>
			<div id ="centerCol">
				<div class="auction">
					<div class="title_auct">
					<p>	
						<h2> <?php echo $this->productauction[0]['p_ten'] ?> </h2>	
					</p>
					<p>
						<img src = "/public/images/auction/auction_rule.jpg" ></img>
					</p>
					</div>
					<div class="auction_content">
						<div id="imgProductAuction">
							<img src = '/public/images/product/<?php echo $this->productauction[0]['p_linkImg']?>' width="200" height="220"></img> <br />
						</div>
						<div id ="contentProductAuction">
						<table class="contentProduct">
							<tr>	<td>Giá niêm yết </td>
									<td><?php echo $this->productauction[0]['p_gia'] ?>  &nbsp;VND  </td>
							</tr>
							<tr>	<td>Giá khởi điểm </td>
									<td><?php echo $this->productauction[0]['pa_giakhoidiem'] ?>&nbsp;VND  </td>
							</tr>
							<tr>	<td>Bước giá     </td>
									<td><?php echo $this->productauction[0]['pa_buocgia'] ?> &nbsp;VND  </td>
							</tr>
							<tr>	<td>Giá hiện tại </td>
									<td><?php echo $this->productauction[0]['pa_giaketthuc'] ?>&nbsp;VND  </td>
							</tr>
							<tr>	<td>Thời gian bắt đầu  </td>
									<td><?php echo $this->productauction[0]['pa_giobatdau'] ?>  </td>
							</tr>
							<tr>	<td>Thời gian kết thúc </td>
									<td><?php echo $this->productauction[0]['pa_gioketthuc'] ?>  </td>
							</tr>
							<tr>	<td>Số lượng đấu giá   </td>
									<td>   1 </td>
							</tr>
						</table>		
						</div>
						<div id="formAuction">
						<form  name='form_auction' method ="post" action="show?id=<?echo $this->productauction[0]['pa_id']?>&k=<?php echo this->password ?>">
							<input type = "submit" id="guigiadau" value= "Đặt giá"/>
							<div>Giá đấu phải >=<span id="dieukiengia" style="color:red;"><?=$this->gia?></span>&nbsp; VND</div>
							<div style="color:red;font-size:.8em;"><i>"Vì quyền lợi của Quý khách và những thành viên khác trong phiên đấu giá. Xin vui lòng cân nhắc kỹ trước khi đặt giá"</i></div>
						</form>
						</div>
					</div>
					<?if($this->message){?><div class="showauction1"><?=$this->message?></div><?}?>	
					<div class="showauction">
						<p>DANH SÁCH TRẢ GIÁ</p>
						<?php echo $this->action('showauction','auction','default'); ?>
					</div>
				</div>
			</div>	
			<div id="footer">
				<br/>
				<br/>
				<hr/>
				<p>Copyright &copy; 2010 Zend Framework 1.8. All rights reserved.<br>Powered by Group 17,Software Engineering K51 </p>	
				<br>
			</div>	
		
		</div>
	</body>

</html>

